package com.jiangcheng.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("树洞")
@AllArgsConstructor
public class TreeHole implements Serializable {

    public TreeHole(){}

    private static final long serialVersionUID=1L;

    @TableId(value = "t_id", type = IdType.AUTO)
    @ApiModelProperty("树洞ID")
    private Integer tId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    private LocalDateTime createdTime;

    /**
     * 是否公开
     */
    @ApiModelProperty("是否公开")
    private Boolean isPublic;

    @ApiModelProperty("用户ID")
    private Integer uId;


}
